package pay;

/**
 * 打折优惠策略.
 *
 * @author GongXincheng
 * @since 2019-09-14 13:59
 */
public class StraregyDaZhe implements Strategy {

    private double zheNum;

    StraregyDaZhe(double zheNum) {
        this.zheNum = zheNum;
    }

    @Override
    public double getResultPrice(double totalPrice) {
        return totalPrice * zheNum;
    }
}
